function myAjax(url,type,callback,data=null){
  $.ajax({
    url: 'http://localhost:8080/api/v1'+url,
    type:type,
    data:data,
    success:function(resData){
      callback(resData)
    }
    })
}